<%
var containerParam = {
	title: '从者管理',
	currentMenu: 'servant',
	styleArray: [ctxPath + '/css/servant/show.css'],
	jsArray: [ctxPath + '/js/servant/show.js'],
	breadcrumbMap: {
		'首页': ctxPath + '/',
		'从者一览': null
	}
};
layout('/common/_website_container.html', containerParam){
%>
<div class="layui-card">
	<div class="layui-form layui-card-header padding-vertical-15 height-auto">
		<div class="layui-form-item margin-bottom-0">
			<#searchinput label="名称" name="name"/>
			<#searchselect label="职介" name="classId" itemValue="id" itemDesc="name" items="${classes}"/>
			<#searchselect label="星级" name="star" itemValue="value" itemDesc="desc" items="${@CollectionUtils.generateSeries([0,'★ 0'],[1,'★ 1'],[2,'★ 2'],[3,'★ 3'],[4,'★ 4'],[5,'★ 5'])}"/>
			<#searchselect label="cost" name="cost" itemValue="value" itemDesc="value" items="${@CollectionUtils.generateSeries(0,3,4,7,12,16)}"/>
			<#searchselect label="阵营" name="faction" itemValue="value" itemDesc="desc" items="${@ServantFaction.values()}"/>
			<#searchselect label="获取方式" name="get" itemValue="value" itemDesc="desc" items="${@ServantGet.values()}"/>
			<#searchselect label="宝具" name="npColorCard" itemValue="value" itemDesc="desc" items="${@ColorCard.values()}"/>
			<#searchselect label="宝具类型" name="npType" itemValue="value" itemDesc="desc" items="${@ServantNpType.values()}"/>
			<#searchselect label="指令卡" name="cards" itemValue="value" itemDesc="desc" items="${@ServantCards.values()}"/>
			<#searchselect label="性别" name="sex" itemValue="value" itemDesc="desc" items="${@Sex.values()}"/>
			<#searchselect label="特性" name="trait" itemValue="value" itemDesc="desc" items="${@ServantTrait.values()}"/>
			<#searchselect label="声优" name="cvId" itemValue="id" itemDesc="name" items="${cvs}"/>
			<#searchselect label="画师" name="painterId" itemValue="id" itemDesc="name" items="${painters}"/>
			<div class="layui-inline">
				<label class="layui-form-label">属性</label>
				<div class="layui-input-inline">
					<select name="propA" lay-search>
						<option value=""></option>
						<% for (item in @ServantPropA.values()) { %>
						<option value="${item.value}">${item.desc}</option>
						<% } %>
					</select>
				</div>
				<div class="layui-input-inline">
					<select name="propB" lay-search>
						<option value=""></option>
						<% for (item in @ServantPropB.values()) { %>
						<option value="${item.value}">${item.desc}</option>
						<% } %>
					</select>
				</div>
			</div>
			<#searchsubmit/>
		</div>
	</div>
	<div class="layui-card-body">
		<table id="table"></table>
	</div>
</div>

<!-- 底部栏 start -->
<% layout('/common/_website_footer.html'){} %>
<!-- 底部栏 end -->
<% } %>
